<div class="col-md-3 <?php
if ($good['is_stock']) {
    echo 'goods_item_no_stock';
}
?>">
    <div class="thumbnail" id="<?php echo $good['goods_id']; ?>" >
        <?php
		//是否售完
		if($good['is_stock']){
		?>
        <img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        <?php
		}else{
		?>
        <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank" class="good_url" title="<?php echo $good['goods_name']; ?>">
            <?php
			//是否使用lazyload插件加载
				if($i < 40){
			?>
					<img class="good_img" src="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
			<?php
				}else{
			?>
					
					<img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
			<?php
				}
			?>
        </a>
        <?php
		}
		?>
        <div class="caption">
            <div class="item-title">
                <span ><?php echo $good['goods_name']; ?></span>
				<div class="<?php if($good['item_type']==1){ echo 'tmall_icon'; }else { echo 'taobaoc_icon'; } ?>"></div>
				
            </div>
            <div class="information">
            	<div class="promo-price">
            		<span class="price_red">&#165</span><span class="promo_price"><?php echo $good['promo_price']; ?></span>
            		<div class="origin-label">原价:</div>
            		<div class="origin-price">&#165 <?php echo number_format($good['p_price'], 0);?></div>
            	</div>
            	<a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank" title="<?php echo $good['goods_name']; ?>" class=""><div class="pull-left buy-btn"></div></a>
            	<Div class="clearfix"></Div>
            </div>
            
           
        </div>
    </div>
    
    	
    <?php
	//是否售完
	if($good['is_stock']){
	?>
    <a class="no_stock_icon" title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}else{
	?>
    <a class="no_stock_icon" href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank"  title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}
	?>
</div>